:START
SET robo_path=Robocopy


REM See the robocopy documentation for what each command does.
REM /COPY:DAT :: COPY file data, attributes, and timestamps
REM /COPYALL :: COPY ALL file info
REM /Z	Copies files in restartable mode.
REM /B :: copy files in Backup mode.
REM /ZB	Uses restartable mode. If access is denied, this option uses Backup mode.
REM /MIR :: MIRror a directory tree
REM /PURGE:: Deletes destination files and directories that no longer exist in the source.
REM          Using this option with the /e option and a destination directory,
REM          allows the destination directory security settings to not be overwritten.
REM /MOV	Moves files, and deletes them from the source after they are copied.
REM /MOVE	Moves files and directories, and deletes them from the source after they are copied.
REM /L :: Just list the info, don't actually do it
REM /S	Copies subdirectories. This option automatically excludes empty directories.
REM /E	Copies subdirectories. This option automatically includes empty directories.
REM /LEV:<n>	Copies only the top n levels of the source directory tree.
REM SET what_to_copy=/Z /S /PURGE
SET what_to_copy=/Z /PURGE

REM Exclude some files and directories that include transient data
REM that doesn't need to be copied.
SET exclude_dirs=/XD "raw" "backup*"
SET exclude_files=/XF *.log* _ck*

REM Refer to the robocopy documentation for more details.
REM /R:n :: number of Retries
REM /W:n :: Wait time between retries
REM /LOG :: Output log file
REM /NFL :: No file logging
REM /NDL :: No dir logging
REM /E   :: Include Empty Subdirectories
REM /XA:H :: Excludes files with hidden attribute
REM /XJ :: Exclude Junction Points (prevents recursive Application Data loop in Vista)
SET options=/R:1

REM Execute the command based on all of our parameters
REM %robo_path% %source_dir% %dest_dir% %what_to_copy% %options% %exclude_dirs% %exclude_files% *.sas7*


SET sourcedir=".\modules\Google\Google"
SET targetdir=".\Google"

SET copy_files=*.yml
set xd=dts_staging*
%robo_path% %sourcedir% %targetdir% %copy_files% %what_to_copy% %options% /XD %xd%

SET sourcedir=".\modules\Microsoft\Microsoft"
SET targetdir=".\Microsoft"

SET copy_files=*.yml
set xd=dts_staging*
%robo_path% %sourcedir% %targetdir% %copy_files% %what_to_copy% %options% /XD %xd%

SET sourcedir=".\modules\proselint\proselint"
SET targetdir=".\proselint"

SET copy_files=*.yml
set xd=dts_staging*
%robo_path% %sourcedir% %targetdir% %copy_files% %what_to_copy% %options% /XD %xd%

SET sourcedir=".\modules\write-good\write-good"
SET targetdir=".\write-good"


SET sourcedir=".\modules\alex\alex"
SET targetdir=".\alex"

SET copy_files=*.yml
set xd=dts_staging*
%robo_path% %sourcedir% %targetdir% %copy_files% %what_to_copy% %options% /XD %xd%


SET sourcedir=".\modules\readability\readability"
SET targetdir=".\readability"

SET copy_files=*.yml
set xd=dts_staging*
%robo_path% %sourcedir% %targetdir% %copy_files% %what_to_copy% %options% /XD %xd%


SET sourcedir=".\modules\vale-styles\Middlebury"
SET targetdir=".\Middlebury"

SET copy_files=*.yml
set xd=dts_staging*
%robo_path% %sourcedir% %targetdir% %copy_files% %what_to_copy% %options% /XD %xd%


SET sourcedir=".\modules\vale-styles\Pedantic"
SET targetdir=".\Pedantic"

SET copy_files=*.yml
set xd=dts_staging*
%robo_path% %sourcedir% %targetdir% %copy_files% %what_to_copy% %options% /XD %xd%



SET copy_files=*.yml
set xd=dts_staging*
%robo_path% %sourcedir% %targetdir% %copy_files% %what_to_copy% %options% /XD %xd%


:END
